function loadPage(url) {
    document.getElementById('mainFrame').src = url;
}

function logout() {
    // 示例：重定向到登录页
    window.location.href = "/login/";
}